package com.example.controller;

import com.example.model.Result;
import com.example.model.SelectiveProducts;
import com.example.service.impl.SelectiveProductsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Hello
 * @since 2024-07-09
 */
@RestController
@RequestMapping("/selectiveProducts")
public class SelectiveProductsController {
    @Autowired
    SelectiveProductsServiceImpl selectiveProductsService;

    @GetMapping("/getAllImages")
    public Result<List<String>> getAllImages(){
        System.out.println("controller be called");
        return Result.success(selectiveProductsService.getAllImages());
    }
}
